<template>
  <div id="findTalent">
    <!-- 1.智能匹配首页 -->
    <div v-if="showDiv == 1" class="showDiv01">
      <div class="div01">
        <p>拒绝翻车从<span>找对达人</span>开始</p>
        <span class="history" @click="seeHistory"
          >查看历史匹配记录<img src="@/assets/li/more.png" />
        </span>
      </div>
      <div
        class="startBtn"
        :class="{ 'hvr-ripple-out': showAnimation }"
        @click="toSearch01()"
        @mouseenter="showAnimation = true"
        @mouseleave="showAnimation = false"
      >
        开启智能匹配
      </div>
      <div class="imgBox">
        <div class="imgItem" @click="toSearch01()">
          <img src="@/assets/wang/work/img01.png" alt="" />
        </div>
        <div class="imgItem" @click="toSearch01()">
          <img src="@/assets/wang/work/img02.png" alt="" />
        </div>
        <div class="imgItem" @click="toSearch01()">
          <img src="@/assets/wang/work/img03.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import SourceIcon from "@/component/SourceIcon.vue";
import BigPie from "@/pages/wang/talent/tdetails/component/BigPie.vue";
import DetailsBar from "@/pages/wang/talent/tdetails/component/DetailsBar";
export default {
  name: "",
  components: { BigPie, DetailsBar, SourceIcon },
  data() {
    return {
      showDiv: 1, //1:第一页 2：搜商品  3.选择推广预算  4.匹配达人 5.历史匹配记录
      showGoods: 1, //1:商品搜索 2：搜索结果
      showAnimation: false
    };
  },
  computed: {},
  watch: {},
  created() {
    document.title = "智能找达人&智能分析服务平台-掌上精选";
  },
  mounted() {},

  methods: {
    toSearch01() {
      this.$router.push({ path: "/inAnalysis/talentHome" });
    },
    seeHistory() {
      let router = this.$router.resolve({
        path: `/inAnalysis/matchHistory`
      });
      window.open(router.href, "_blank");
    }
  }
};
</script>
<style lang="less" scoped>
#findTalent {
  width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: auto;
  .addTop {
    margin-top: 100px;
  }
  .showDiv01 {
    .div01 {
      width: 100%;
      position: relative;
      margin-top: 117px;
      line-height: 40px;
      p {
        width: 500px;
        margin: 0 auto;
        font-size: 36px;
        color: #222222;
        text-align: center;
        line-height: 40px;
        font-weight: 600;
        span {
          font-size: 36px;
          color: #fd7f2c;
        }
      }
      .history {
        cursor: pointer;
        font-size: 14px;
        color: #fd7f2c;
        position: absolute;
        top: 0;
        right: 0;
        > img {
          width: 7px;
          height: 11px;
          margin-left: 5px;
          margin-top: -3px;
        }
      }
    }
    .startBtn {
      //   display: block;
      width: 180px;
      height: 68px;
      line-height: 68px;
      text-align: center;
      background-color: #ff7419;
      border-radius: 34px;
      font-size: 18px;
      color: #ffffff;
      margin: 0 auto;
      margin-top: 39px;
      margin-bottom: 81px;
      cursor: pointer;
    }
    .hvr-ripple-out {
      // display: inline-block;
      vertical-align: middle;
      transform: perspective(1px) translateZ(0);
      box-shadow: 0 0 1px transparent;
      position: relative;
    }
    .hvr-ripple-out:before {
      content: "";
      position: absolute;
      border: #ff7419 solid 6px;
      border-radius: 34px;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      animation-name: example;
      transition: all 0.18s ease-out 0s;
      -webkit-animation-duration: 1s;
      animation-duration: 1s;
      animation-fill-mode: forwards;
    }
    @keyframes example {
      0% {
        transform: scale(1, 1);
        opacity: 1;
      }
      100% {
        transform: scale(1.2, 1.4);
        opacity: 0;
      }
    }
    .imgBox {
      width: 1200px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .imgItem {
        width: 396px;
        height: 520px;
        position: relative;
        img {
          width: 380px;
          height: 500px;
          border-radius: 10px;
          cursor: pointer;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
        img:hover {
          transition: all 0.3s;
          width: 396px !important;
          height: 520px !important;
        }
      }
    }
  }
}
</style>
